for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
(function() {
'use strict';
// The namespace
/** @namespace faulancer.core.debugoutput */
var ns = faulancer.namespace('core.debugoutput');
faulancer
/** global: faulancer */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
ns
var _eventHandler = {
onStackClick: function() {
document.querySelectorAll('.stack').forEach(function(item) {
item.style.display = 'none';
});
document.querySelectorAll('.previousStack').forEach(function(item) {
item.classList.remove('selected');
this.classList.add('selected');
document.getElementById(this.dataset.stackIdentifier).style.display = 'block';
}
};
// Public scope
ns = {
init: function() {
var stacks = document.querySelectorAll('.previousStack');
stacks.forEach(function(item, i) {
if (i !== 0) {
item.addEventListener('click', _eventHandler.onStackClick);
window.addEventListener('load', ns.init());
})();
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.